package com.java.day07jdbc;

import java.util.List;

public class JDBCTest {

    public static void main(String[] args) {

//        JDBCUtils.executeUpdate(
//                "insert into student(name,age,gender,address) values(?,?,?,?)",
//                "杨过",20,"男","襄阳");

//        List<Student> students = JDBCUtils.executeQuery(Student.class,"select * from student");
//        students.forEach(student -> System.out.println(student));

        List<Car> cars = JDBCUtils.executeQuery(Car.class,"select * from car");
        cars.forEach(car -> System.out.println(car));
    }
}
